import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
    state: {
        Menus: [{
                "id": 1,
                "path": "/home",
                "nameEn": "AdminIndex",
                "nameZh": "首页",
                "icon": "el-icon-s-home",
                "component": "AdminIndex",
                "parentId": 0
            },
            {
                "id": 2,
                "path": "/user",
                "nameEn": "User",
                "nameZh": "用户管理",
                "icon": "el-icon-user",
                "component": "AdminIndex",
                "parentId": 0,
                "children": [{
                        "id": 6,
                        "path": "/user/profile",
                        "nameEn": "Profile",
                        "nameZh": "用户信息",
                        "icon": null,
                        "component": "user/UserProfile",
                        "parentId": 2
                    },
                    {
                        "id": 7,
                        "path": "/user/role",
                        "nameEn": "Role",
                        "nameZh": "角色配置",
                        "icon": null,
                        "component": "user/Role",
                        "parentId": 2
                    }
                ]
            },
            {
                "id": 3,
                "path": "/content",
                "nameEn": "Content",
                "nameZh": "内容管理",
                "icon": "el-icon-tickets",
                "component": "AdminIndex",
                "parentId": 0,
                "children": [{
                        "id": 9,
                        "path": "/content/department",
                        "nameEn": "Department",
                        "nameZh": "就业部类",
                        "icon": null,
                        "component": "content/department",
                        "parentId": 3
                    },
                    {
                        "id": 10,
                        "path": "/content/student",
                        "nameEn": "Student",
                        "nameZh": "学生类",
                        "icon": null,
                        "component": "content/student",
                        "parentId": 3,
                        "children": [{
                            "id": 20,
                            "path": "/content/student/graduateInfo",
                            "name": "graduateInfo",
                            "nameZh": "毕业生信息",
                            "icon": null,
                            "component": "content/student/graduateInfo",
                            "parentId": 10
                        }]
                    },
                    {
                        "id": 11,
                        "path": "/content/enterprise",
                        "nameEn": "Enterprise",
                        "nameZh": "企业类",
                        "icon": null,
                        "component": "content/enterprise",
                        "parentId": 3
                    }
                ]
            },
            {
                "id": 4,
                "path": "/system",
                "nameEn": "System",
                "nameZh": "系统管理",
                "icon": "el-icon-s-tools",
                "component": "AdminIndex",
                "parentId": 0,
                "children": [{
                        "id": 12,
                        "path": "/system/run",
                        "nameEn": "Run",
                        "nameZh": "运行情况",
                        "icon": null,
                        "component": "system/run",
                        "parentId": 4
                    },
                    {
                        "id": 13,
                        "path": "/system/data",
                        "nameEn": "Data",
                        "nameZh": "备份恢复数据库",
                        "icon": null,
                        "component": "system/data",
                        "parentId": 4
                    },
                    {
                        "id": 14,
                        "path": "/system/log",
                        "nameEn": "Log",
                        "nameZh": "操作日志",
                        "icon": null,
                        "component": "system/log",
                        "parentId": 4
                    }
                ]
            },
            {
                "id": 5,
                "path": "/link",
                "nameEn": "Link",
                "nameZh": "链接",
                "icon": "el-icon-paperclip",
                "component": "AdminIndex",
                "parentId": 0
            }
        ]
    },
    mutations: {},
    actions: {},
    modules: {}
})